package com.service;

import com.github.pagehelper.PageInfo;
import com.pojo.Project;

import java.util.List;
import java.util.Map;

public interface ProjectService {
    //查询所有项目信息，根据项目分类id
    public PageInfo<Project> selectAllProjects(Map map);
    //插入项目信息
    public int insertProject(Project project);
    //修改项目部分信息
    public int updateProject(Project project);
    //删除项目
    public int deleteProject(long id);
    //根据项目id，查询项目信息
    public Project selectProjectById(long id);
    //根据用户id，查询项目信息
    public PageInfo<Project> selectProjectByuserId(int pageNum,long userId,String status);
    //发布项目
    public int startProject(Project project);

    //更新项目发布信息
    public int updateStartProject(Project project);
    //查询所有项目无条件
    public List<Project> selectProjects();
    //根据项目名查询
    public Project selectProjectByProjectName(String projectName);
    //最终更新项目信息
    public int updataProjectEnd(Project project);
}
